package com.project.bean;

import java.time.LocalDate;

/***
 * 商品实体类
 */
public class ProductBean {
    /**商品编号*/
    private int id;
    /**商品名*/
    private String name;
    /**厂家*/
    private String address;
    /**商品价格*/
    private int price;
    /**商品生产日期*/
    private LocalDate date;

    public ProductBean() {
    }

    public ProductBean(String name, String address, int price, LocalDate date) {
        this.name = name;
        this.address = address;
        this.price = price;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", price=" + price +
                ", date=" + date +
                "}\n";
    }
}
